package com.itheima.Pojo;

import java.io.Serializable;

/**
 * @Description 
 * @author PianZhu
 * @date 2025/03/17
 */
public class Department implements Serializable {
	/* 院系代码，主键，唯一标识一个院系 */
	private Integer code;

	/* 院系名称，不能为空 */
	private String name;

	public void setCode(Integer code){
		this.code = code;
	}
	public Integer getCode(){
		return code;
	}

	public void setName(String name){
		this.name = name;
	}
	public String getName(){
		return name;
	}

	@Override
	public String toString() {
		return "院系代码-主键-唯一标识一个院系: " + code + "," + "院系名称-不能为空: " + name;
	}
}